<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
        <head>
                <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
                <title></title>
                <link rel="stylesheet" href="http://localhost/shopFrame/Application/Admin/View/Public/Css/bootstrap.min.css" />
                <link rel="stylesheet" href="http://localhost/shopFrame/Application/Admin/View/Public/Css/common.css" />
                <style type="text/css">
                        body{
                                margin-bottom: 100px;
                                margin-top:10px;
                                font-family: 微软雅黑;
                        }
                </style>
        </head>
        <body>
                <div class="container-fluid">
                        <div class="row-fluid">
                                <div class="span12">
                                        <table class="table table-bordered table-hover">
                                                <tr>
                                                        <th>评论ID</th>
                                                        <th>用户ID</th>
                                                        <th>标签</th>
                                                        <th>评论内容</th>
                                                        <th>评论的商品ID</th>
                                                        <th>评论时间</th>
                                                        <th>状态</th>
                                                        <th>操作</th>
                                                </tr>
                                                <?php if(is_array($data)){?><?php  foreach($data as $key=>$v){ ?>
                                                        <tr class="info">
                                                                <td><?php echo $v['coid'];?></td>
                                                                <td>
                                                                        <?php echo $v['user_uid'];?>
                                                                </td>
                                                                <td>
                                                                        <?php echo $v['cotag'];?>
                                                                </td>
                                                                <td><?php echo $v['cotext'];?></td>
                                                                <td><?php echo $v['goods_gid'];?></td>
                                                                <td><?php echo hd_date($v['commtime'],'Y-m-d H:i:s');?></td>
                                                                <td>
                                                                     <?php echo $v['status'];?>
                                                                </td>
                                                                <td>
                                                                        <a href='<?php echo U("Comment/changestatu",array("statu"=>"pass","coid"=>$v["coid"]));?>' class='btn btn-danger'>通过</a>
                                                                        <a href='<?php echo U("Comment/changestatu",array("statu"=>"nopass","coid"=>$v["coid"]));?>' class='btn btn-success'>不通过</a>
                                                                </td>
                                                        </tr>
                                                <?php }}?>
                                        </table>

                                </div>
                        </div>
                </div>
        </body>
</html>